
#import <Foundation/Foundation.h>

@interface XBSaveDataTool : NSObject
/**
 *  保存BOOL值
 *
 *  @param b   bool值
 *  @param key 保存值的key
 */
+(void)saveBool:(BOOL)b forKey:(NSString *)key;
+(BOOL)boolForKey:(NSString *)key;

/**
 *  保存字符串
 */
+(void)saveValue:(NSString *)value forKey:(NSString *)key;
+(NSString *)valueForKey:(NSString *)key;

/**
 *  保存id对象
 */
+ (void)saveObject:(id)obj forKey:(NSString *)key;
+ (id)objectForKey:(NSString *)key;

/**
 *  保存NSInteger
 */
+ (void)saveInteger:(NSInteger)integer forKey:(NSString *)key;
+ (NSInteger)integerForKey:(NSString *)key;
@end
